# -*-coding:utf-8-*-

# 元组变量不能修改
info_tuple= ("zhangsan", 18, 1.75)

print(type(info_tuple))
print(info_tuple[0])

for item in info_tuple:
    print(item)

# 单元素 元组
single_tuple = (5)
single_tuple2 = (5,)
print(type(single_tuple)) # int
print(type(single_tuple2)) # tuple


#     info_tuple.count info_tuple.index
person_tuple = ("冯提莫","斗鱼主播",22,"斗鱼主播")
print(person_tuple[0])
print(person_tuple.index("斗鱼主播"))
print(person_tuple.count("斗鱼主播"))
print(len(person_tuple))

